package priv.abadstring.study.haoke.webapi.mongo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * House
 *
 * @author aBadString
 * @date 2021-08-05 18:12:19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(collection = "house")
@Builder
public class House {
    @Id
    @JsonSerialize(using = ToStringSerializer.class)
    private ObjectId id;
    private Long hid;
    private String title;
    /**
     * 经纬度
     */
    private Float[] loc;
}
